<!doctype html>
<html>
<head>
<meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'>
<title>README</title>
<link rel="stylesheet" href="css/index.css">
<!-- @import url(https://gitee.com/swlkk/notes/blob/master/css/index.css) -->
</head>
<body><h4 id='简易的命令行入门教程'>简易的命令行入门教程:</h4>
<p>Git 全局设置:</p>
<pre><code>git config --global user.name &quot;swlkk&quot;
git config --global user.email &quot;1472844428@qq.com&quot;
</code></pre>
<p>创建 git 仓库:</p>
<pre><code>mkdir blog
cd blog
git init
touch README.md
git add README.md
git commit -m &quot;first commit&quot;
git remote add origin git@gitee.com:swlkk/blog.git
git push -u origin master
</code></pre>
<p>已有仓库?</p>
<pre><code>cd existing_git_repo
git remote add origin git@gitee.com:swlkk/blog.git
git push -u origin master
</code></pre>
<p>&nbsp;</p>
</body>
<style>
  *{
  margin:0;
  padding: 0;
}

body{
  padding-top: 80px;
  padding-left: 80px;
  background-color: rgb(235, 233, 233);
}
h4{
  font-size: 24px;
}
p{
  margin-top: 22px;
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 20px;
}
pre{
text-align: left;
  width: auto;
  background-color: rgb(24, 164, 189);
  color: aliceblue;
  display:inline-block;
  padding: 10px;
  font-size: 16px;
}
</style>
</html>
